<%= form_for(@user, :url => { :action => "update_role_and_institution", :params => @user.id }) do |f| %>  

  <div class="shadow">

    <fieldset id="agrupacion">
      <legend>Datos personales</legend>

      <fieldset class="column-left">

        <p><label>Nombre</label>
          <%= f.text_field :name %></p>

      </fieldset>
      <fieldset class="column-right">
        <p><label>Apellidos</label>
          <%= f.text_field :lastname %></p>
      </fieldset>
    </fieldset>

    <fieldset id="agrupacion">
      <legend>Datos de acceso</legend>

      <fieldset class="column-left">
        <p><label>Institución cultural</label><%= f.select :cultural_institution, (CulturalHeritage::CulturalInstitution.find(:all,:conditions=>{:deleted=>[0]})).collect { |t| [t.name,t.id]} %> </p>
      </fieldset>
      <fieldset class="column-right">
        <p><label>Rol</label><%= f.select :role, (Security::UserRole.find(:all,:conditions=>{:deleted=>[0]})).collect { |t| [t.name,t.id]} %> </p>
      </fieldset>
    </fieldset>
    <div class="actions">
      <%= f.submit "Modificar"%>
    </div>
  </div>
<% end %>
